package com.shadt.cloud.util;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

public class SignUtil {

	public static boolean checkSign(){
		
		return true;
	}
	
	public static Set<Object> sortByValue(Set<Object> set) {
		List<Object> setList = new ArrayList<Object>(set);
		Collections.sort(setList, new Comparator<Object>() {
			@Override
			public int compare(Object o1, Object o2) {
				return o1.toString().compareTo(o2.toString());
			}

		});
		set = new LinkedHashSet<Object>(setList);// 这里注意使用LinkedHashSet
		return set;
	}
	
	
}
